<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<?php

    session_start();
    
    if(!isset($_SESSION['user'])) {
        header("Location: ../admViews/Login.php");
    }

    require_once '../table_object/User.php';
    $User = new User();
                
    if(isset($_GET['action']) && mysql_real_escape_string($_GET['action']) === 'delete') {
            
        if(isset($_GET['id'])) {
            $User->delete(mysql_real_escape_string($_GET['id']));
        }
            
    }
    
    header("Location: ./UserListAll.php");
        
?>










